Skip to content

chore: Update ._native_frame refs#2290

Merged
MarcoGorelli merged 7 commits intomainfrom
use-native-everywhere
Mar 25, 2025
Merged

chore: Update ._native_frame refs#2290
MarcoGorelli merged 7 commits intomainfrom
use-native-everywhere

Conversation

@dangotbanned
Copy link
Member

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

@dangotbanned dangotbanned marked this pull request as ready for review March 25, 2025 15:11
@dangotbanned
Copy link
Member Author

@MarcoGorelli it might seem strange doing the PR(s) in order of property - but it's helping to somewhat align the code between backends in one go

I'm not looking to do it any time soon - but it seems like sharing more join* code between backends could simplify things a lot

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @dangotbanned !

Comment on lines -931 to +918
if self._implementation is Implementation.PANDAS:
return pl.from_pandas(self.native)
elif self._implementation is Implementation.CUDF: # pragma: no cover
return pl.from_pandas(self.native.to_pandas())
elif self._implementation is Implementation.MODIN:
return pl.from_pandas(self.native._to_pandas())
msg = f"Unknown implementation: {self._implementation}" # pragma: no cover
raise AssertionError(msg)
return pl.from_pandas(self.to_pandas())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄 nice

@MarcoGorelli MarcoGorelli merged commit e3eef8e into main Mar 25, 2025
26 of 28 checks passed
@MarcoGorelli MarcoGorelli deleted the use-native-everywhere branch March 25, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants